package com.cj.pj.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")
public class PageController {

    @RequestMapping("doStarter")
    public String doStarter(){
        return "starter";
    }

 /*   @RequestMapping("doLogUI")
    public String doLogUI(){
        return "/sys/log_list";
    }

    @RequestMapping("doPageUI")
    public String doPageUI(){
        return "/common/page";
    }

    @RequestMapping("doMenuUI")
    public String doMenuUI(){return "/sys/menu_list";}

    @RequestMapping("menu/menu_edit")
    public String doMenuEdit(){return "/sys/menu_edit";}

    @RequestMapping("doRoleUI")
    public String doRoleUI(){return "/sys/role_list";}

    @RequestMapping("role/role_edit")
    public String doRole_edit(){return "/sys/role_edit";}

    @RequestMapping("doUserUI")
    public String doUserUI(){
        return "/sys/user_list";
    }

    @RequestMapping("user/user_edit")
    public String doUser_edit(){return "sys/user_edit";}*/

    @RequestMapping("{state}/{stateUI}")
    public String doPageUI(@PathVariable String state,@PathVariable String stateUI){
        return "/sys/"+stateUI;
    }

    @RequestMapping("doPageUI")
    public String doPageUI(){
        return "/common/page";
    }

    @RequestMapping("doLoginUI")
    public String doLoginUI(){return "/login";}
}
